{include file="insurant_common/insurant_head"}
    <div class="wraper-box">
      <div class="container">
        <div class="main">
          <div class="menu left">
            {include file="insurant_common/insurant_left"}
          </div>
          <div class="menu-content left">
            <div class="search-bar">
              <div class="search-box">
                <input
                  type="search"
                  class="search-bar__input"
                  id="searchInput"
                  placeholder="搜索"
                  required=""
                />
              </div>
              <div class="search-select">
                <input
                  readonly="readonly"
                  style="width: 100%;"
                  value="全部"
                  id="selectInput"
                />
                <div style="display: none;" class="selectInputDiv">
                  <ul
                    style="list-style: none;margin: 0;padding: 0;text-align: center;"
                  >
                    <li style="cursor: pointer; background-color: white;">
                      孙逸
                    </li>
                    <li style="background-color: white; cursor: pointer;">
                      张三
                    </li>
                    <li style="background-color: white;">李四</li>
                    <li style="background-color: white;">王五</li>
                    <li style="background-color: white;">二麻子</li>
                    <li style="background-color: white;">小六子</li>
                    <li style="background-color: white;">九儿</li>
                    <li style="background-color: white;">巴迪</li>
                    <li style="background-color: white;">九个</li>
                    <li style="background-color: white;">四爷</li>
                    <li style="background-color: white;">全部</li>
                  </ul>
                </div>
              </div>
              <div class="clear"></div>
            </div>
            <ul class="rep-recorder-list">
              {foreach($res as $k=>$v)}
              <li class="rep-recorder-list-item">
                <div class="left">
                  <p>报案号：<span>{$v.policy_num}</span></p>
                  <p>
                    <span class="grey">{$v.created_at}</span>
                  </p>
                </div>
                <div class="right">
                  <a class="status grey"
                    >{$v.status_name} <i class="iconfont-arrow">&#xe64d;</i></a
                  >
                </div>
              </li>
            {/foreach}
            </ul>
          </div>
          <div class="clear"></div>
        </div>
      </div>
        {include file="common/footer"}
  <script src="http://code.jquery.com/jquery-1.11.3.min.js"></script>
  <script src="/static/pc/js/select.js"></script>
  <script type="text/javascript">
    $('#selectInput').click(function() {
      //点击输入框打开选项窗，若已打开则关闭
      if ($('.selectInputDiv').css('display') == 'none') {
        $('.selectInputDiv').show()
        // $('.selectInputDiv li:contains(' + $(this).val() + ')').css('background-color', 'orange')
      } else {
        $('.selectInputDiv').hide()
      }
    })
    $('.selectInputDiv li').click(function() {
      //点击选择时为输入框赋值。并关闭选项窗
      $('#selectInput').val($(this).text())
      $('.selectInputDiv').hide()
    })
    //为选项设置颜色
    $('.selectInputDiv li').mouseover(function() {
      $('.selectInputDiv li').css('background-color', 'white')
      $(this).css({
        cursor: 'pointer'
        // 'background-color': 'orange'
      })
    })
  </script>

